import fetch from '../fetch';

export async function signIn(data) {
  const opt = {
    url: '/signIn',
    method: 'post',
    data,
  };
  return fetch(opt);
}

export async function signUp(data) {
  const opt = {
    url: '/signUp',
    method: 'post',
    data,
  };
  return fetch(opt);
}

export async function getLikedMessageByUserId(params) {
  const opt = {
    url: '/getLikedMessageByUserId',
    params,
  };
  return fetch(opt);
}

export async function getCommentArticleMessageByUserId(params) {
  const opt = {
    url: '/getCommentArticleMessageByUserId',
    params,
  };
  return fetch(opt);
}
export async function getCommentReplyMessageByUserId(params) {
  const opt = {
    url: '/getCommentReplyMessageByUserId',
    params,
  };
  return fetch(opt);
}

export async function getFocusMessageByUserId(params) {
  const opt = {
    url: '/getFocusMessageByUserId',
    params,
  };
  return fetch(opt);
}
export async function getSystemMessageByUserId(params) {
  const opt = {
    url: '/getSystemMessageByUserId',
    params,
  };
  return fetch(opt);
}
